<form id="pagerForm" action="__URL__" method="post">   <!-- action="#rel#" -->
    <input type="hidden" name="p" value="1" />
    <input type="hidden" name="numPerPage" value="{$numPerPage}" />
    <input type="hidden" name="orderField" value="{$orderField}" />
    <input type="hidden" name="orderDirection" value="{$param.orderDirection}" />
</form>


<div class="pageHeader">
    <form rel="pagerForm" onsubmit="return navTabSearch(this);" action="__URL__" method="post">
    <div class="searchBar">
        <table class="searchContent">
            <tr>
                <td>
                    登录帐号:
                    <input type="text" style="height: 20px;" value="{$filters.admin_name}" name="admin_name" />
                </td>
                <td>
                    邮箱：
                    <input type="text" style="height: 20px;" value="{$filters.admin_email}" name="admin_email" />
                </td>
            </tr>
        </table>
        <div class="subBar">
            <ul>
                <li><div class="buttonActive"><div class="buttonContent"><button type="submit">检索</button></div></div></li>
            </ul>
        </div>
    </div>
    </form>
</div>
<div class="pageContent">
    <div class="panelBar">
        <ul class="toolBar">
            <if condition="in_array('insert', $privilegelist)">
                <li><a class="add" href="__URL__/add" rel="adminadd" max="true" target="dialog"><span>添加</span></a></li>
                <li class="line">line</li>
            </if>
            <if condition="in_array('delete', $privilegelist)">
                <li><a title="确实要删除这些记录吗?" target="selectedTodo" rel="ids" href="__URL__/delAll" postType="string" class="delete"><span>批量删除</span></a></li>
                <li class="line">line</li>
            </if>
            <if condition="in_array('edit', $privilegelist)">
                <li><a class="edit" href="__URL__/edit/id/{admin_id}" rel="adminedit" target="dialog" warn="请选择一条记录"><span>修改</span></a></li>
            </if>
        </ul>
    </div>
    
    <table class="table" width="100%" layoutH="138">
        <thead>

            <tr>

            <if condition="in_array('delete', $privilegelist)">
            <th>
                <input type="checkbox" group="ids" class="checkboxCtrl" />
            </th>
            </if>
            <th width="120">登录帐号</th>
            <th>姓名</th>
            <th>邮箱地址</th>
            <th>所属岗位</th>
            <th>最后登录时间</th>
            <th>最后登录IP</th>
            <th>操作</th>
            </tr>
        </thead>
        <tbody>

        <volist name="list" id="admin">
            <tr rel="{$admin.admin_id}" target="admin_id">
                <if condition="in_array('delete', $privilegelist)">
                    <td>
                        <input name="ids" value="{$admin.admin_id}" type="checkbox"/>
                    </td>
                </if>
                <td>{$admin.admin_name}</td>
                <td>{$admin.name}</td>
                <td>{$admin.admin_email}</td>
                <td>{$admin.groups}</td>
                <td >
                    <gt name="admin.last_login_time" value="0">
                        {$admin.last_login_time|date="Y-m-d H:i:s",###}
                    </gt>
                </td>
                <td>{$admin.last_login_ip}</td>
                <td>
                    <if condition="in_array('edit', $privilegelist)">
                        <a title="编辑" target="dialog" href="__URL__/edit/id/{$admin.admin_id}" class="btnEdit" max="true" rel="adminedit">编辑</a>
                    </if>
                    <if condition="in_array('delete', $privilegelist)">
                        <a title="删除" target="ajaxTodo" href="__URL__/delete/id/{$admin.admin_id}" 
                    class="btnDel">删除</a>
                    </if>
                </td>
            </tr>
        </volist>
        </tbody>
    </table>
    <div class="panelBar">
        <div class="pages">
            <span>显示</span>
            <select class="combox" name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value})">
                <option value="20" <?php echo $numPerPage == 20 ? 'selected="true"' : '' ; ?> >20</option>
                <option value="50" <?php echo $numPerPage == 50 ? 'selected="true"' : '' ; ?>>50</option>
                <option value="100" <?php echo $numPerPage == 100 ? 'selected="true"' : '' ; ?> >100</option>
                <option value="200" <?php echo $numPerPage == 200 ? 'selected="true"' : '' ; ?> >200</option>
            </select>
            <span>条，共{$totalCount}条</span>
        </div>

        <div class="pagination" targetType="navTab" totalCount="{$totalCount}" numPerPage="{$numPerPage}" pageNumShown="10" currentPage="{$currentPage}"></div>

    </div>
</div>
